<template>
  <el-dialog
      :before-close="handleClose"
      :title="title"
      :visible.sync="dialogVisible"
      width="30%">
    {{ record.noteContect }}
  </el-dialog>
</template>
<script>
export default {
  data() {
    return {dialogVisible: false, record: undefined, title: undefined};
  },
  methods: {
    openByRecord(record) {
      this.title = record.title
      this.dialogVisible = true
      this.record = record
    },
    handleClose() {
      this.dialogVisible = false
    }
  }
}
</script>